package com.ambulance.project.manager.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ambulance.project.manager.mapper.BizCarChannelMapper;
import com.ambulance.project.manager.domain.BizCarChannel;
import com.ambulance.project.manager.service.IBizCarChannelService;

/**
 * 车载通道Service业务层处理
 * 
 * @author zr
 * @date 2020-05-11
 */
@Service
public class BizCarChannelServiceImpl implements IBizCarChannelService 
{
    @Autowired
    private BizCarChannelMapper bizCarChannelMapper;

    /**
     * 查询车载通道
     * 
     * @param id 车载通道ID
     * @return 车载通道
     */
    @Override
    public BizCarChannel selectBizCarChannelById(Long id)
    {
        return bizCarChannelMapper.selectBizCarChannelById(id);
    }

    /**
     * 查询车载通道列表
     * 
     * @param bizCarChannel 车载通道
     * @return 车载通道
     */
    @Override
    public List<BizCarChannel> selectBizCarChannelList(BizCarChannel bizCarChannel)
    {
        return bizCarChannelMapper.selectBizCarChannelList(bizCarChannel);
    }

    /**
     * 新增车载通道
     * 
     * @param bizCarChannel 车载通道
     * @return 结果
     */
    @Override
    public int insertBizCarChannel(BizCarChannel bizCarChannel)
    {
        return bizCarChannelMapper.insertBizCarChannel(bizCarChannel);
    }

    /**
     * 修改车载通道
     * 
     * @param bizCarChannel 车载通道
     * @return 结果
     */
    @Override
    public int updateBizCarChannel(BizCarChannel bizCarChannel)
    {
        return bizCarChannelMapper.updateBizCarChannel(bizCarChannel);
    }

    /**
     * 批量删除车载通道
     * 
     * @param ids 需要删除的车载通道ID
     * @return 结果
     */
    @Override
    public int deleteBizCarChannelByIds(Long[] ids)
    {
        return bizCarChannelMapper.deleteBizCarChannelByIds(ids);
    }

    /**
     * 删除车载通道信息
     * 
     * @param id 车载通道ID
     * @return 结果
     */
    @Override
    public int deleteBizCarChannelById(Long id)
    {
        return bizCarChannelMapper.deleteBizCarChannelById(id);
    }
}
